<?php

class LostPassForm extends BaseFormModel
{
 
    public $email;

    /**
     * Declares the validation rules.
     */
    public function rules()
    {
        return array(
            // name, email, subject and body are required
            array('email', 'required','message'=>'{attribute} không thể bỏ trống'),
            // email has to be a valid email address
            array('email', 'email','message'=>'{attribute} không hợp lệ'),
           
        );
    }

    /**
     * Declares customized attribute labels.
     * If not declared here, an attribute would have a label that is
     * the same as its name with the first letter in upper case.
     */
    public function attributeLabels()
    {
        return array(
            'email' => 'Email',
        );
    }

}